home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 16 / AMIGAplus Sonderheft 16 (1998)(ICP)(DE)[!].iso / pd / anwendungen / ispell-3.1.18src / makekit (.txt) < prev    next >
Microsoft Windows Help File Content  |  1995-01-23  |  7KB  |  213 lines

  1. : Use /bin/sh
  2. # $Id: Makekit,v 1.38 1995/01/15 00:54:45 geoff Exp $
  3. # Copyright 1992, 1993, Geoff Kuenning, Granada Hills, CA
  4. # All rights reserved.
  5. # Redistribution and use in source and binary forms, with or without
  6. # modification, are permitted provided that the following conditions
  7. # are met:
  8. # 1. Redistributions of source code must retain the above copyright
  9. #    notice, this list of conditions and the following disclaimer.
  10. # 2. Redistributions in binary form must reproduce the above copyright
  11. #    notice, this list of conditions and the following disclaimer in the
  12. #    documentation and/or other materials provided with the distribution.
  13. # 3. All modifications to the source code must be clearly marked as
  14. #    such.  Binary redistributions based on modified source code
  15. #    must be clearly marked as modified versions in the documentation
  16. #    and/or other materials provided with the distribution.
  17. # 4. All advertising materials mentioning features or use of this software
  18. #    must display the following acknowledgment:
  19. #      This product includes software developed by Geoff Kuenning and
  20. #      other unpaid contributors.
  21. # 5. The name of Geoff Kuenning may not be used to endorse or promote
  22. #    products derived from this software without specific prior
  23. #    written permission.
  24. # THIS SOFTWARE IS PROVIDED BY GEOFF KUENNING AND CONTRIBUTORS ``AS IS'' AND
  25. # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  26. # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  27. # ARE DISCLAIMED.  IN NO EVENT SHALL GEOFF KUENNING OR CONTRIBUTORS BE LIABLE
  28. # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  29. # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  30. # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  31. # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  32. # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  33. # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  34. # SUCH DAMAGE.
  35. #    Make an ispell distribution kit.  This is not a clever script,
  36. #    just a handy one.
  37. #    Usage:
  38. #    Makekit [-c] [-d destdir] [-e]
  39. #    destdir is the directory in which the kits will be made;  you will
  40. #    want to pick someplace that has lots of space.
  41. #    If -e is specified, the list of files in the kit is echoed to
  42. #    stdout and no kit is made.
  43. #    If -c is specified, the intermediate dictionary files are cleaned up.
  44. # $Log: Makekit,v $
  45. # Revision 1.38  1995/01/15  00:54:45  geoff
  46. # Add iwhich and the new Spanish support
  47. # Revision 1.37  1994/05/18  02:56:25  geoff
  48. # Remember to list dictionaries with the -e switch
  49. # Revision 1.36  1994/04/27  02:58:42  geoff
  50. # Add the new English-dialect Makefiles
  51. # Revision 1.35  1994/02/07  08:39:49  geoff
  52. # Don't delete everything when we're only echoing names
  53. # Revision 1.34  1994/01/25  08:51:16  geoff
  54. # Get rid of all old RCS log lines in preparation for the 3.1 release.
  55. posting=3.1
  56. maxsize=60000        # This leaves room for some headers
  57. clean=false
  58. destdir=kits
  59. echolist=false
  60. PATH=`pwd`:$PATH; export PATH
  61. USAGE="Usage:  Makekit [-c] [-d destdir] [-e]"
  62. while [ $# -gt 0 ]
  63.     case "$1" in
  64.         clean=true
  65.         shift
  66.         ;;
  67.         destdir="$2"
  68.         shift; shift
  69.         ;;
  70.         echolist=true
  71.         shift
  72.         ;;
  73.         echo "$USAGE" 1>&2
  74.         exit 1
  75.         ;;
  76.     esac
  77. case "$destdir" in
  78.     /*)
  79.     *)
  80.     destdir=`pwd`/$destdir
  81. flist='
  82. Contributors
  83. README
  84. Magiclines
  85. Makefile
  86. Makekit
  87. Makepatch
  88. WISHES
  89. buildhash.c
  90. config.X
  91. correct.c
  92. defmt.c
  93. dump.c
  94. fields.3
  95. fields.c
  96. fields.h
  97. findaffix.X
  98. good.c
  99. hash.c
  100. icombine.c
  101. ijoin.c
  102. ishar
  103. ispell.1X
  104. ispell.4
  105. ispell.c
  106. ispell.el
  107. ispell.h
  108. ispell.texinfo
  109. iwhich
  110. local.h.samp
  111. lookup.c
  112. makedict.sh
  113. makedent.c
  114. makeshar
  115. munchlist.X
  116. parse.y
  117. proto.h
  118. splitdict
  119. subset.X
  120. term.c
  121. tgood.c
  122. tree.c
  123. tryaffix.X
  124. unsq.c
  125. version.h
  126. xgets.c
  127. zapdups.X
  128. languages/Makefile
  129. languages/Where
  130. languages/fix8bit.c
  131. languages/altamer/Makefile
  132. languages/american/Makefile
  133. languages/british/Makefile
  134. languages/dansk/Makefile
  135. languages/dansk/dansk.7bit
  136. languages/deutsch/Makefile
  137. languages/deutsch/deutsch.7bit
  138. languages/deutsch/deutsch-alt.7bit
  139. languages/english/Makefile
  140. languages/english/english.4l
  141. languages/english/english.aff
  142. languages/english/msgs.h
  143. languages/espanol/Makefile
  144. languages/espanol/castellano.7bit
  145. languages/espanol/espanol.7bit
  146. languages/francais/Makefile
  147. languages/francais/francais.7bit
  148. languages/francais/francais-alt.7bit
  149. languages/nederlands/Makefile
  150. languages/nederlands/nederlands.7bit
  151. languages/norsk/Makefile
  152. languages/norsk/norsk.7bit
  153. languages/svenska/Makefile
  154. languages/svenska/svenska.7bit
  155. addons/nextispell/Makefile
  156. addons/nextispell/README
  157. addons/nextispell/configure
  158. addons/nextispell/configure.h.template
  159. addons/nextispell/configureTeX
  160. addons/nextispell/nextispell.m
  161. addons/nextispell/services.template
  162. addons/xspell.shar
  163. if $echolist
  164.     echo $flist
  165.     echo languages/english/*.[0-3]
  166.     exit 0
  167. [ -d "$destdir" ]  ||  mkdir "$destdir"
  168. rm -f $destdir/Post${posting}.??.shar
  169. # Make the main shar files
  170. cursize=0
  171. files=
  172. chmod +x makeshar ishar
  173. sharno=`makeshar -n -m $maxsize -o $destdir/Post${posting}. -pX $flist`
  174. # Set up to make dictionary files
  175. chmod +x splitdict
  176. [ -d "$destdir/languages" ]  ||  mkdir "$destdir/languages"
  177. # Make the English dictionaries
  178. [ -d "$destdir/languages/english" ]  ||  mkdir "$destdir/languages/english"
  179. rm -f $destdir/languages/english/*.?.??
  180. ./splitdict $maxsize languages/english/english.0 \
  181.   $destdir/languages/english/eng.0.
  182. ./splitdict $maxsize languages/english/english.1 \
  183.   $destdir/languages/english/eng.1.
  184. ./splitdict $maxsize languages/english/english.2 \
  185.   $destdir/languages/english/eng.2.
  186. ./splitdict $maxsize languages/english/english.3 \
  187.   $destdir/languages/english/eng.3.
  188. ./splitdict $maxsize languages/english/american.0 \
  189.   $destdir/languages/english/amer.0.
  190. ./splitdict $maxsize languages/english/american.1 \
  191.   $destdir/languages/english/amer.1.
  192. ./splitdict $maxsize languages/english/american.2 \
  193.   $destdir/languages/english/amer.2.
  194. ./splitdict $maxsize languages/english/altamer.0 \
  195.   $destdir/languages/english/altamer.0.
  196. ./splitdict $maxsize languages/english/altamer.1 \
  197.   $destdir/languages/english/altamer.1.
  198. ./splitdict $maxsize languages/english/altamer.2 \
  199.   $destdir/languages/english/altamer.2.
  200. ./splitdict $maxsize languages/english/british.0 \
  201.   $destdir/languages/english/brit.0.
  202. ./splitdict $maxsize languages/english/british.1 \
  203.   $destdir/languages/english/brit.1.
  204. ./splitdict $maxsize languages/english/british.2 \
  205.   $destdir/languages/english/brit.2.
  206. sharno=`expr $sharno + 1`
  207. cd $destdir
  208. makeshar -f $sharno -m $maxsize -o $destdir/Post${posting}. -pX \
  209.   languages/english/eng.?.?? languages/english/amer.?.?? \
  210.   languages/english/altamer.?.?? languages/english/brit.?.??
  211. if $clean
  212.     rm -f $destdir/languages/english/*.?.??
  213.